const routes = [
  // 揽件管理-国内件
  {
    name: "tookManagementList",
    path: "/tookManagement/list",
    component: "/tookManagement/list",
  },
  {
    name: "tookManagementDetail",
    path: "/tookManagement/list/detail",
    component: "/tookManagement/detail",
    hideInMenu: true,
  },
  {
    name: "tookManagementReceipt",
    path: "/tookManagement/list/receipt",
    component: "/tookManagement/receipt",
    hideInMenu: true,
  },
  {
    name: "tookManagementSet",
    path: "/tookManagement/list/setting",
    component: "/tookManagement/setting",
    hideInMenu: true,
  },
  {
    name: "tookManagementQrCode",
    path: "/tookManagement/list/qrCcode",
    component: "/tookManagement/qrCode",
    hideInMenu: true,
  },
]

const tookDeposit = routes.map((route: any) => {
  route.path = `/tookDeposit${route.path}`;
  route.component = `./tookDeposit${route.component}`;
  return route;
}, {});

export default [
  {
    name: "tookDeposit",
    path: "/tookDeposit",
    icon: "smile",
    routes: [
      ...tookDeposit,
      {
        component: "./404"
      }
    ]
  },
];
